home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / include / gl / bitmap.h.z / bitmap.h
Encoding:
C/C++ Source or Header  |  1996-12-06  |  1.5 KB  |  42 lines

  1. #ifndef __GL_BITMAP_H__
  2. #define __GL_BITMAP_H__
  3. /**************************************************************************
  4.  *                                      *
  5.  *          Copyright (C) 1984, Silicon Graphics, Inc.          *
  6.  *                                      *
  7.  *  These coded instructions, statements, and computer programs  contain  *
  8.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  9.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  10.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  11.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  12.  *                                      *
  13.  **************************************************************************/
  14.  
  15. /*
  16.  *  bitmap.h
  17.  *
  18.  *  $Revision: 1.5 $
  19.  *
  20.  * WARNING: Do not change order of data in structure.  The EXPRESS 
  21.  *          gl_outcharmap code relies on xsize, xorig, xmove, and sper
  22.  *          being long word aligned.
  23.  */
  24.  
  25. typedef struct bitmap {
  26.     unsigned short    *base;         /* pointer to first word */
  27.     short        xsize, ysize;    /* dimensions of the bitmap */
  28.     short        xorig, yorig;    /* origin - used for cursors */
  29.     short        xmove, ymove;    /* move - used by characters */
  30.     short        sper;        /* shorts per row */
  31. } Bitmap;
  32.  
  33. /* Structure for storing Bitmap's hashed by name */
  34. typedef struct bitmaprec {
  35.         struct bitmaprec *next;         /* must match genericrec */
  36.         unsigned long name;             /* must match genericrec */
  37.         Bitmap bm;                      /* note a struct, not a ptr */
  38. } Bitmaprec;
  39. #define BM_TILE    2048            /* tile sizes in shorts */
  40.  
  41. #endif    /* !__GL_BITMAP_H__ */
  42.